package cloud.shyidong.core.util;

import java.util.Collection;

/**
 * @Description TODO
 * @Author syd
 * @Date 2023/3/27
 */
public final class CollectionUtils {
    
    public static boolean isEmpty(Collection collection) {
        if (collection == null) {
            return true;
        }
        if (collection.isEmpty()) {
            return true;
        }
        return false;
    }
    
    public static boolean isNotEmpty(Collection collection) {
        return !isEmpty(collection);
    }
    
}
